﻿using System;
using QzEbook.Admin;
using System.Web;
namespace QzEbook.Common
{
    public static class SessionManager
    {
        public static readonly string LOGINUSER="User";

        public static SessionUser LoginUser
        {
            get
            {
                return HttpContext.Current.Session[SessionManager.LOGINUSER] as SessionUser;
            }
            set
            {
                HttpContext.Current.Session[SessionManager.LOGINUSER] = value;
            }
        }

        public static void add(string name, object value)
        {
            HttpContext.Current.Session.Add(name, value);
        }
    }
    

}